package travlefate.story.fragment;

import android.support.v7.widget.LinearLayoutManager;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import travlefate.story.R;
import travlefate.story.adapter.CollectAdapter;
import travlefate.story.base.BaseFragment;
import travlefate.story.views.PullToRefreshRecycleView;

/**
 * @author keven
 * @data 15/12/23 下午2:13
 * @package travlefate.story.fragment
 * 收藏
 */

public class FragmentCollect extends BaseFragment{

    private PullToRefreshRecycleView mRecycleView;
    private CollectAdapter mAdapter;

    @Override
    protected void initDatas() {
        LinearLayoutManager manager = new LinearLayoutManager(getActivity());
        mRecycleView.setLayoutManager(manager);
//        mAdapter = new CollectAdapter(getActivity());
//        mRecycleView.setAdapter(mAdapter);
    }

    @Override
    protected void initClick() {

    }

    @Override
    protected void initViews(View view) {
        mRecycleView = (PullToRefreshRecycleView) view.findViewById(R.id.collect_list);
    }

    @Override
    protected View initLayout(ViewGroup container) {
        return LayoutInflater.from(container.getContext()).inflate(R.layout.fragment_collect,null);
    }
}
